#include <iostream>
using namespace std;
int add_n_static(int a) {
  static int local = 3;
  cout << "全局数据区值:" << local << "\n";
  return a + local++;
}
int add_n_local(int a) {
  int local = 3;
  cout << "栈空间下变量：" << local << endl;
  return a + local++;
}
int main() {
  for (int i = 0; i < 4; i++) {
    cout << add_n_static(i) << endl;
    cout << add_n_local(i) << endl;
  }
}
